<?phpfunction calendrier_raids_getEvents($ts,&$events){	global $sql;		$res=$sql->request("select * from ".CFG_MYSQL_PREFIX."calendrier_raid where valide=1 and ts=".$ts);	foreach($res as $var){		$raid= new calendrier_raid($var);		$events[]=new event(array(			"titre"=>$raid->lieu->nom,			"description"=>$raid->description,			"url"=>"calendrier_raids?ts=".$raid->ts,			"ico"=>$raid->lieu->ico		));	}		}